<?php

namespace App\Models\Log;

use App\Models\User\Users;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Casts\Attribute;

use Illuminate\Database\Eloquent\Model;
use App\Models\User\UserDetail;
use App\Models\Search\SearchExogenousData;

class LogUserBrowse extends Model
{
    use HasDateTimeFormatter;

    protected $table = 'log_user_browse';

    protected $guarded = [];

    public function users()
    {
        return $this->hasOne(Users::class, 'id', 'uid');
    }

    public function idata()
    {
        return $this->hasOne(UserDetail::class, 'id', 'rid');
    }

    public function edata()
    {
        return $this->hasOne(SearchExogenousData::class, 'id', 'rid');
    }
}
